zm.ready(function() {

//////////////////////////delete survey///////////////
    zm(".delete-survey").click(function() {
        new zm.Boxy({
            title: 'Nhắc nhở',
            content: 'Bạn có chắc xóa khảo sát này?',
            modal: false,
            okButton: 'Đồng ý',
            cancelButton: 'Hủy bỏ',
            onOk:  ajaxDelSurvey
        }).show();
    });

    /////////////////////show content multiline//////////

    zm(".namecol-mutil").bind("click", function() {
        ajaxGetAnswer(zm(this));        
    });

/////////////////////////////////////////////////////
});

//function showContentText(element) {
//    element.parent().parent().find(".namecol-mutil").removeClass("active");
//    element.addClass("active");
//    var content = element.parent().find(".dataanswer").html();
//    element.parent().parent().parent().find(".content-mutil-line-text").text(content);
//    element.parent().parent().parent().find(".content-mutil-line-text").removeClass("showboder");
//    element.parent().parent().parent().find(".content-mutil-line-text").addClass("showboder");
//    var leftelemt = element.parent().parent();
//    var rightelemt = element.parent().parent().parent().find(".content-mutil-line-text");
//    balance(leftelemt, rightelemt);
//
//}
function balance(left, right) {
    var leftPosition = left.position();
    var leftWith = left.width();
    var leftHeight = left.height();
    if (leftHeight > right.height()) {
        var hi = right.height();
        var test = leftPosition.top + (leftHeight - right.height() / 2);

        right.css("margin-top", ((leftHeight - right.height()) / 2) + "px");

    }
    else{
          right.css("margin-top","3px");
    }

}